package cn.wgoodq.domain.propDemo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by OuKyou on 2017/4/10.
 */
@Component
public class ReadPropDemo {

    @Value("${strValue}")
    private String strValue;

    @Value("${intValue}")
    private int intValue;


    public ReadPropDemo() {
    }

    public String getStrValue() {
        return strValue;
    }

    public int getIntValue() {
        return intValue;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ReadPropDemo{");
        sb.append("strValue='").append(strValue).append('\'');
        sb.append(", intValue=").append(intValue);
        sb.append('}');
        return sb.toString();
    }
}